﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class Power
    {
        #region Fields
        private string _baseField;
        private string _effectiveField;
        private string _increasedDpsField;
        private string _petAttackField;
        private string _petSpellField;
        #endregion
        #region Properties
        public string @Base
        {
            get
            {
                return this._baseField;
            }
            set
            {
                this._baseField = value;
            }
        }

        public string Effective
        {
            get
            {
                return this._effectiveField;
            }
            set
            {
                this._effectiveField = value;
            }
        }

        public string IncreasedDps
        {
            get
            {
                return this._increasedDpsField;
            }
            set
            {
                this._increasedDpsField = value;
            }
        }

        public string PetAttack
        {
            get
            {
                return this._petAttackField;
            }
            set
            {
                this._petAttackField = value;
            }
        }

        public string PetSpell
        {
            get
            {
                return this._petSpellField;
            }
            set
            {
                this._petSpellField = value;
            }
        }
        #endregion
        #region Constructor
        public Power(XElement element)
        {
            @Base = element.GetAttributeValue("base");
            Effective = element.GetAttributeValue("effective");
            IncreasedDps = element.GetAttributeValue("increasedDps");
            PetAttack = element.GetAttributeValue("petAttack");
            PetSpell = element.GetAttributeValue("petSpell");
        }
        #endregion
    }
}
